package com.etc.dao;

import com.etc.entity.RoomInfo;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface RoomInfoDao {
    /**
     * 增加房间
     * 邓玲琪
     * @return boolean int>0 为True  否则为False
     */
    public int addRoomInfo(@Param("roomNum")int roomNum,@Param("rtId")String rtId,
                           @Param("roomTel")String roomTel,@Param("roomStatus")int roomStatus,
                           @Param("roomFloog")String roomFloog);

    /**
     * 根据房间编号删除房间
     * 邓玲琪
     * @return boolean int>0 为True  否则为False
     */
    public int delRoomInfo(@Param("roomId") String roomId);

    /**
     * 根据房间编号修改房间信息
     * 邓玲琪
     * @return boolean int>0 为True  否则为False
     */
    public int modifyRoomInfo(RoomInfo roomInfo);

    /**
     * 查找所有房间信息
     * 邓玲琪
     * @param
     * @return List<RoomInfo>集合
     */
    List<RoomInfo> queryAllRoomInfos(@Param("roomNum")int roomNum,@Param("roomStatus")int roomStatus,@Param("rtName")String rtName);


}
